﻿using System;
using System.Data.Entity;
using System.Linq;
using Codeplus.Dhruvtaata.Web.Models.Entity;

namespace Codeplus.Dhruvtaata.Web.Models.EntityAction {
    public class StudentCrudAction : CrudAction<Student> {
        
        public override void Delete(Student entity) {
            this.dataContext.Addresses.Remove(entity.ContactAddress);
            base.Delete(entity);            
        }

        public override void Update(Student oldEntity, Student newEntity) {
            throw new NotImplementedException();
        }
    }
}